<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .a {
            width: 300px;
            height: 200px;
            /* 线性渐变 */
            /* background:linear-gradient(red , rgb(122, 10, 10) , yellow , green) ; */
            /* background: linear-gradient(90deg, red, rgb(122, 10, 10), yellow, green); */

            /* background-size: 10px 10px; */

            /* 径向渐变 */
            /* background: radial-gradient(circle , red, blue); */
            /* background-size: 20px 10px; */

            background: linear-gradient(red 0% , blue 30% , blue 100%);
            /* background: linear-gradient(red 0% ,red 50% , blue 50% , blue 100%); */
            background: linear-gradient(red 50% , blue 50% );
        }

        
    </style>
</head>

<body>

    <div class="a"></div>


</body>

</html>